package chabernac.util;

import java.util.ArrayList;
import java.util.List;

public class Iterables {
	public static <T> Iterable<T> filter(Iterable<T> aList, iPredicate<T> aPredicate){
		List<T> theList = new ArrayList<T>();
		for(T theT : aList){
			if(aPredicate.apply(theT)){
				theList.add(theT);
			}
		}
		return theList;
	}
}
